<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <ul id="list">
        <li>郭德纲</li>
        <li>郭麒麟</li>
        <li>岳云鹏</li>
    </ul>
    <button id="btn">新增人物</button>
    <script>
        let btnEle = document.getElementById('btn');
        let listEle = document.getElementById('list');
        btnEle.addEventListener('click', () => {
            //1、创建节点
            let newLi = document.createElement('li');
            newLi.innerText = '孙悦'
            //2、将节点移动到父节点的下面：父节点.appendChild(子节点)
            listEle.appendChild(newLi);
        });
    </script>
</body>

</html>